import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-04-18
 * Time: 17:47
 */
public class main {
    public static void main(String[] args) {
        Random random = new Random();
        Scanner scanner = new Scanner(System.in);
        int ran = random.nextInt(100);
        while(true){
            System.out.println("请输入你的数字：（1-100）");
            int num = scanner.nextInt();
            if(num > ran){
                System.out.println("高了！");
            }else if(num == ran){
                System.out.println("答对了！");
                break;
            }else{
                System.out.println("低了！");
            }
        }
    }
}
